import common from './common'
import paths from './paths'

const messageTemplateService = {};

(function (service) {
  /**
   * 查询：查询消息模板列表
   */
  service.getMessageTemplateList = (params) => {
    return common.post(paths.messageTemplate.getMessageTemplateList, params, null)
  }
  /**
   * 更新：更新消息模板
   * */
  service.updateMessageTemplate = (data) => {
    return common.post(paths.messageTemplate.updateMessageTemplate, null, data)
  }
  /**
   * 新增：添加消息模板
   */
  service.addMessageTemplate = (data) => {
    return common.post(paths.messageTemplate.addMessageTemplate, null, data)
  }
  /**
   * 删除：删除消息模板
   */
  service.deleteMessageTemplate = (params) => {
    return common.post(paths.messageTemplate.deleteMessageTemplate, params, null)
  }
})(messageTemplateService)

export default messageTemplateService
